﻿<div id="search" style="display: block;">
    @{    
        Html.RenderPartial("Search");
    }
</div>
<div>
    @foreach (var item in Model)
    {
        <div class="inline-block" data-title="@item.MiniContent">
            <a href="/content/@item.idreview" class="review-block">
                <img class="block-size" src="@item.MainImage" alt="" title="@item.Title"/>
            </a>
        </div>
    }
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#openSearch").on("click", function () {
            var i = $(this);
            if (i.hasClass("icon-chevron-up")) {
                i.removeClass().addClass("icon-chevron-down");
            } else {
                i.removeClass().addClass("icon-chevron-up");
            }
            $("#search").slideToggle("fast");
        });
    });
</script>
